<%--
  Created by IntelliJ IDEA.
  Author: WaveHi
  Contact: HJBWaveHi@163.com
  Date: 17/9/2021
  Time: 下午 9:33
  Description: 
  Version: 1.0
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<html>
<head>
    <title>Homework06</title>
</head>
<body>
    <h2>c:if的使用</h2>
    <c:if test="${requestScope.num1 > 10}">
        <h2>num1 大于 10</h2>
    </c:if>
    <h2>c:choose的使用</h2>
    <c:choose>
        <c:when test="${requestScope.num1 > 15}">
            <h2>num1 大于 15</h2>
        </c:when>
        <c:when test="${requestScope.num1 eq 15}">
            <h2>num1 等于 15</h2>
        </c:when>
        <c:when test="${requestScope.num1 < 15}">
            <h2>num1 小于 15</h2>
        </c:when>
        <c:otherwise>
            <h2>数据不合法！</h2>
        </c:otherwise>
    </c:choose>
    <h2>c:forEach 的使用</h2>
    <c:forEach begin="0" end="10">
        <h3>重复的信息</h3>
    </c:forEach>
    <h2>fmt:formatDate 的使用</h2>
    <label>当地时间：</label>
    <fmt:formatDate value="${requestScope.date}" pattern="yyyy-MM-dd hh:mm:ss"></fmt:formatDate>
</body>
</html>
